From f61d64c62e3945c1f9b18c4917e16f7d7c7556e2 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Mon, 26 Sep 2005 16:31:33 +0100 Subject: [PATCH] xenbus_transaction_end() returns negative error code. Therefore need to test for -EAGAIN (not EAGAIN). Signed-off-by: Keir Fraser --- linux-2.6-xen-sparse/drivers/xen/blkback/xenbus.c | 2 +- linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c | 2 +- linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c | 2 +- linux-2.6-xen-sparse/drivers/xen/tpmback/xenbus.c | 2 +- linux-2.6-xen-sparse/drivers/xen/tpmfront/tpmfront.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/linux-2.6-xen-sparse/drivers/xen/blkback/xenbus.c b/linux-2.6-xen-sparse/drivers/xen/blkback/xenbus.c index aaea46f231..ba64721bd6 100644 --- a/linux-2.6-xen-sparse/drivers/xen/blkback/xenbus.c +++ b/linux-2.6-xen-sparse/drivers/xen/blkback/xenbus.c @@ -121,7 +121,7 @@ again: } err = xenbus_transaction_end(0); - if (err == EAGAIN) + if (err == -EAGAIN) goto again; if (err) { xenbus_dev_error(be->dev, err, "ending transaction", diff --git a/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c b/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c index 90c20b072f..598fecc3d1 100644 --- a/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c +++ b/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c @@ -604,7 +604,7 @@ again: err = xenbus_transaction_end(0); if (err) { - if (err == EAGAIN) + if (err == -EAGAIN) goto again; xenbus_dev_error(dev, err, "completing transaction"); goto destroy_blkring; diff --git a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c index 39e96846af..b7273a5c51 100644 --- a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c +++ b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c @@ -1161,7 +1161,7 @@ again: err = xenbus_transaction_end(0); if (err) { - if (err == EAGAIN) + if (err == -EAGAIN) goto again; xenbus_dev_error(dev, err, "completing transaction"); goto destroy_ring; diff --git a/linux-2.6-xen-sparse/drivers/xen/tpmback/xenbus.c b/linux-2.6-xen-sparse/drivers/xen/tpmback/xenbus.c index 3bb1247a00..c9c417cabd 100644 --- a/linux-2.6-xen-sparse/drivers/xen/tpmback/xenbus.c +++ b/linux-2.6-xen-sparse/drivers/xen/tpmback/xenbus.c @@ -129,7 +129,7 @@ again: } err = xenbus_transaction_end(0); - if (err == EAGAIN) + if (err == -EAGAIN) goto again; if (err) { xenbus_dev_error(be->dev, err, "end of transaction"); diff --git a/linux-2.6-xen-sparse/drivers/xen/tpmfront/tpmfront.c b/linux-2.6-xen-sparse/drivers/xen/tpmfront/tpmfront.c index a9535a08f4..43ae40bdce 100644 --- a/linux-2.6-xen-sparse/drivers/xen/tpmfront/tpmfront.c +++ b/linux-2.6-xen-sparse/drivers/xen/tpmfront/tpmfront.c @@ -364,7 +364,7 @@ again: } err = xenbus_transaction_end(0); - if (err == EAGAIN) + if (err == -EAGAIN) goto again; if (err) { xenbus_dev_error(dev, err, "completing transaction"); -- 2.30.2